package com.top10.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.top10.entity.BlackList;
import com.top10.mapper.BlackListMapper;
import com.top10.service.BlackListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BlackListServiceImpl implements BlackListService {

    @Autowired
    private BlackListMapper blackListMapper;
    @Override
    public Integer selectBlackList(String black_value)throws Exception{
        return  blackListMapper.selectCount(new EntityWrapper<BlackList>().eq("black_value",black_value));
    }
}
